﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class APPManager : MonoBehaviour
{
    public GameObject APP;
    public Image Back;
    public Button Icon;
    public int Next = 0;

    void Start()
    {
        Icon.onClick.AddListener(delegate
        {
            if (Next>0)
            {
                GameObject.Find("GameManager").GetComponent<Guide>().Next();
                Next -= 1;
            }
            GameObject.Find("GameManager").GetComponent<DesktableManager>().Clear();
            APP.SetActive(true);
            Back.color = new Color(1, 1, 1, 0.5f);
        });
    }
}
